<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var x = 1;
        var y = 2;
        console.log(x += y);  //  +=  不能分开写  //3 （1+2）
        console.log(x -= y);                     //1  (3-2)
        console.log(x *= y);                     //2  (1*2)
        console.log(x /= y);                     //1  (2/2)
        console.log(x %= y);                     //1  (1%2)


    </script>
</body>
</html>